using Tiwo.Design.Controllers;
using Tiwo.Design.Renderers;
using Tiwo.Elements;

namespace Tiwo.Design.ItemRenderers
{
    public class InputOperations : IActionListProvider
    {
        public InputFlowPoint Point { get; private set; }
        public Environment Environment { get; private set; }

        public InputOperations(InputFlowPoint point, Environment environment)
        {
            Environment = environment;
            Point = point;
        }

        public IActionList CreateActions()
        {
            return new ActionList
            {
                new RenamePointAction(Point),
                new ChangePointTypeAction(Point, Environment)
            };
        }
    }
}